package ltd.hxya.novel.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户充值记录表
 * </p>
 *
 * @author hxya
 * @since 2022-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_pay_record")
@ApiModel(value="UserPayRecord对象", description="用户充值记录表")
public class UserPayRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "充值用户ID")
    private Long userId;

    @ApiModelProperty(value = "充值方式，1：支付宝，2：微信")
    private Boolean payChannel;

    @ApiModelProperty(value = "商户订单号")
    private Long outTradeNo;

    @ApiModelProperty(value = "充值金额(单位元)")
    private Integer totalAmount;

    @ApiModelProperty(value = "获得屋币")
    private Integer wuAmount;

    @ApiModelProperty(value = "充值时间")
    private LocalDateTime payTime;


}
